# -*- coding: utf-8 -*-
# @Time:2021/04/23 15:28
# @Author:Cindy
from time import sleep

from appium.webdriver.common.mobileby import MobileBy
from pages.base_page import BasePage
from pages.contact_page import Contact


class MainPage(BasePage):

    def goto_contact(self):
        """
        跳转到通讯录页面
        :return:
        """
        self.driver.find_element(MobileBy.XPATH, "//*[@text='通讯录']").click()
        sleep(3)
        return Contact(self.driver)
